pp108 : Adding Controls to an XForm

Adding Controls to an XForm

This topic describes the procedure to add controls to an XForm.

While designing an XForm, you can add various controls to it to perform actions such as entering and displaying information.

  1. Open the XForm in the XForms Designer.
  2. Drag the control from the Toolbox tab to add it.
    The control is inserted and positioned depending on the layout of the XForm, and is set to focus.

The size of the added control depends on the size and layout of the parent control. In case of vertical layouts, the control occupies the full available width. For horizontal layouts, two controls are arranged in a row, by default. For Free layouts, the control is inserted at the position you drag it to and retains the default size.

You can resize the control manually, or can use the Set Default Size context-menu option to specify its default width.

Note: In case of Vertical and Horizontal layouts, placeholders appear on the XForm to help you insert the control.

When a control is added to an XForm, an auto-generated ID is assigned to it. You can view this ID in the control's property sheet. Process Platform XForms supports the copying of existing controls within an XForm and to other XForms. However, two controls in an XForm cannot have the same ID. If a control is copied to the same XForm, then as two controls in the XForm cannot have the same ID, the copied control is automatically assigned a new unique ID. When copied to another XForm, the ID of the copied control is retained or changed depending on the existing IDs of the controls in that XForm.

Related reference

Interface Design Overview
Controls